package cn.edu.sdjzu.service;

import cn.edu.sdjzu.entity.Department;
import cn.edu.sdjzu.entity.School;
import cn.edu.sdjzu.exception.BaseException;

import java.lang.reflect.InvocationTargetException;
import java.sql.SQLException;
import java.util.Collection;


public interface DepartmentService {
    Collection<Department> findAll() throws SQLException, BaseException, InvocationTargetException;
    Collection<Department> getAll(School school) throws SQLException, BaseException, InvocationTargetException;
    int countAll(School school) throws SQLException, BaseException;

    boolean add(Department department) throws SQLException, BaseException;
    boolean delete(Integer id) throws SQLException, BaseException;

    boolean delete(Department department) throws SQLException, BaseException;

    Department find(Integer id) throws SQLException, BaseException, InvocationTargetException;

}
